﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Program15
{
    class Computer
    {
        public EnumFist fist { get; set; }
        public EnumFist ShowFist()
        {
            Random rd = new Random();
            int rNum = rd.Next(1, 4);
            switch (rNum)
            {
                case 1:
                    this.fist= EnumFist.石头;
                    break;
                case 2:
                    this.fist = EnumFist.剪刀;
                    break;
                case 3:
                    this.fist = EnumFist.布;
                    break;
            }
            return (EnumFist)rNum;
        }
    }
}
